package com.atguigu.spzx.order.service;

import com.atguigu.spzx.model.dto.h5.OrderInfoDto;
import com.atguigu.spzx.model.entity.order.OrderInfo;
import com.atguigu.spzx.model.vo.h5.TradeVo;
import com.github.pagehelper.PageInfo;

/**
 * ClassName: OrderInfoService
 * Package:
 * Description:
 *
 * @Author:xiaohei
 * @Create 2024/5/23 21:46
 * Version 1.0
 */
public interface OrderInfoService {
    //下单确认接口  结算
    TradeVo getTrade();

    //提交订单
    Long submitOrder(OrderInfoDto orderInfoDto);

    //获取订单信息
    OrderInfo getOrderInfo(Long orderId);

    //立即购买
    TradeVo buy(Long skuId);

    //获取我的订单  分页列表
    PageInfo<OrderInfo> findOrderPage(Integer page, Integer limit, Integer orderStatus);

    //获取订单信息
    OrderInfo getByOrderNo(String orderNo);
}
